package com.loie.datacenter.service.impl;

import com.loie.datacenter.mapper.FinanceMapper;
import com.loie.datacenter.model.bo.FinanceBO;
import com.loie.datacenter.model.bo.FinanceSumBO;
import com.loie.datacenter.service.FinanceService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author zhl
 * @create 2021/9/28 22:45
 */
@AllArgsConstructor
@Transactional(readOnly = false)
@Service("financeService")
public class FinanceServiceImpl implements FinanceService {
    final FinanceMapper financeMapper;

    @Override
    public List<FinanceBO> getFinanceList(FinanceBO bo, String user) {
        return financeMapper.getFinanceList(bo, user);
    }

    @Override
    public
    FinanceSumBO getFinanceCount(FinanceBO bo, String user) {
        return financeMapper.getFinanceCount(bo, user);
    }
}
